//
//  HDBaseModel.h
//  OTIS_MD
//
//  Created by 何达达 on 2017/8/21.
//  Copyright © 2017年 hedada. All rights reserved.
//

#import <Foundation/Foundation.h>

@class BaseLdata,BaseL,BaseBdata,BaseUp,BaseCurrent_Info,BaseDown,BaseBl_Cr,BaseBl_Bs,BaseBd_Cr,BaseBd_Bs;
@interface HDBaseModel : NSObject

@property (nonatomic, strong) BaseLdata *LData;

@property (nonatomic, strong) BaseBdata *BData;

@end
@interface BaseLdata : NSObject

@property (nonatomic, strong) NSString *CNT_D;

@property (nonatomic, strong) NSString *LastTS;

@property (nonatomic, strong) NSString *LatchedCount;

@property (nonatomic, strong) NSMutableArray<BaseL *> *L;

@end

@interface BaseL : NSObject

@property (nonatomic, strong) NSString *Y1;

@property (nonatomic, strong) NSString *G_CNT;

@property (nonatomic, strong) NSString *R2;

@property (nonatomic, strong) NSString *R2_R;

@property (nonatomic, strong) NSString *Y2;

@property (nonatomic, strong) NSString *Y_CNT_R;

@property (nonatomic, strong) NSString *Y2_R;

@property (nonatomic, strong) NSString *G_CNT_R;

@property (nonatomic, strong) NSString *R1_R;

@property (nonatomic, strong) NSString *L;

@property (nonatomic, strong) NSString *R_CNT;

@property (nonatomic, strong) NSString *Y1_R;

@property (nonatomic, strong) NSString *Y_CNT;

@property (nonatomic, strong) NSString *R_CNT_R;

@property (nonatomic, strong) NSString *R1;

@end

@interface BaseBdata : NSObject

@property (nonatomic, strong) NSString *LastTS;

@property (nonatomic, strong) BaseCurrent_Info *Current_info;

@property (nonatomic, strong) BaseBd_Bs *BD_BS;

@property (nonatomic, strong) BaseUp *Up;

@property (nonatomic, strong) NSString *LatchedCount;

@property (nonatomic, strong) BaseDown *Down;

@property (nonatomic, strong) BaseBl_Cr *BL_CR;

@property (nonatomic, strong) BaseBl_Bs *BL_BS;

@property (nonatomic, strong) BaseBd_Cr *BD_CR;

@property (nonatomic, strong) NSString *CNT_D;

@end

@interface BaseUp : NSObject

@property (nonatomic, strong) NSString *Max;

@property (nonatomic, strong) NSString *Ave;

@property (nonatomic, strong) NSString *Ave_RAM;

@property (nonatomic, strong) NSString *Min_RAM;

@property (nonatomic, strong) NSString *Min;

@property (nonatomic, strong) NSString *Max_RAM;

@end

@interface BaseCurrent_Info : NSObject

@property (nonatomic, strong) NSString *Runs_SR;

@property (nonatomic, strong) NSString *Runs_D;

@property (nonatomic, strong) NSString *BL_BC;

@property (nonatomic, strong) NSString *TUP;

@property (nonatomic, strong) NSString *BD_BC;

@property (nonatomic, strong) NSString *TDN;

@property (nonatomic, strong) NSString *BL_BS;

@property (nonatomic, strong) NSString *BD_BS;

@end

@interface BaseDown : NSObject

@property (nonatomic, strong) NSString *Max;

@property (nonatomic, strong) NSString *Ave_RAM;

@property (nonatomic, strong) NSString *Min_RAM;

@property (nonatomic, strong) NSString *Min;

@property (nonatomic, strong) NSString *Max_RAM;

@property (nonatomic, strong) NSString *Ave;

@end

@interface BaseBl_Cr : NSObject

@property (nonatomic, strong) NSString *Max;

@property (nonatomic, strong) NSString *Ave_RAM;

@property (nonatomic, strong) NSString *Min_RAM;

@property (nonatomic, strong) NSString *Min;

@property (nonatomic, strong) NSString *Max_RAM;

@property (nonatomic, strong) NSString *Ave;

@end

@interface BaseBl_Bs : NSObject

@property (nonatomic, strong) NSString *Max;

@property (nonatomic, strong) NSString *Ave_RAM;

@property (nonatomic, strong) NSString *Min_RAM;

@property (nonatomic, strong) NSString *Min;

@property (nonatomic, strong) NSString *Max_RAM;

@property (nonatomic, strong) NSString *Ave;

@end

@interface BaseBd_Cr : NSObject

@property (nonatomic, strong) NSString *Max;

@property (nonatomic, strong) NSString *Ave_RAM;

@property (nonatomic, strong) NSString *Min_RAM;

@property (nonatomic, strong) NSString *Min;

@property (nonatomic, strong) NSString *Max_RAM;

@property (nonatomic, strong) NSString *Ave;

@end

@interface BaseBd_Bs : NSObject

@property (nonatomic, strong) NSString *Max;

@property (nonatomic, strong) NSString *Ave_RAM;

@property (nonatomic, strong) NSString *Min_RAM;

@property (nonatomic, strong) NSString *Min;

@property (nonatomic, strong) NSString *Max_RAM;

@property (nonatomic, strong) NSString *Ave;

@end

@interface ModelToJson :NSObject

//通过对象返回一个NSDictionary，键是属性名称，值是属性值。
+ (NSDictionary*)getObjectData:(id)obj;

//将getObjectData方法返回的NSDictionary转化成JSON
+ (NSData*)getJSON:(id)obj options:(NSJSONWritingOptions)options error:(NSError**)error;

//直接通过NSLog输出getObjectData方法返回的NSDictionary
+ (void)print:(id)obj;
@end
